#include<QApplication>
#include<QtDeclarative>
#include<QDeclarativeEngine>
#include<QObject>
#include<QGLWidget>
#include "applicationstarter.h"

int main(int argc,char **argv) {
    QApplication app(argc,argv);

    //Register type
    qmlRegisterType<ApplicationStarter>("ApplicationStarter",1,0,"Starter");

    QDeclarativeView *view = new QDeclarativeView();

    //Enable OpenGL
    view->setViewport(new QGLWidget());

    view->setResizeMode(QDeclarativeView::SizeRootObjectToView);
    view->setSource(QUrl("qrc:/applicationList.qml"));

    view->showFullScreen();

    return app.exec();
}
